package com.hemaapp.yjnh.nettask;

import java.net.URL;

import android.view.View;
import android.widget.ImageView;

import com.hemaapp.yjnh.R;

import xtom.frame.image.load.XtomImageTask;

/**加载网络大图的任务
 * @author GuiyouZhang
 * Date：2016年1月4日 下午4:56:36
 * Email:guiyouzhang@163.com
 */
public class ImageBigTask extends XtomImageTask {
	
	private ImageView imageView;
	
    public ImageBigTask(ImageView imageView, URL url, Object context) {
        super(imageView, url, context);
        this.imageView = imageView;
    }
	
	public ImageBigTask(ImageView imageView, URL url, Object context, View fatherView) {
		super(imageView, url, context, fatherView);
		this.imageView = imageView;
	}
	
	@Override
	public void failed() {
		super.failed();
		imageView.setImageResource(R.drawable.no_pic_big);
	}

	@Override
	public void beforeload() {
		super.beforeload();
		imageView.setImageResource(R.drawable.no_pic_big);
	}
}
